﻿using Ecommerce.Domain.Rabbit;
using Ecommerce.Repository;
using EcommerceRabbit.Repository.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EcommerceRabbit.Repository.Impl
{
    public class ClutivaReposiotry : BaseRepository<Cultivation>, IClutivaReposiotry
    {
        public ClutivaReposiotry(EFContexts context) : base(context)
        {
        }
        public async Task<int> AddAsync(Cultivation cultivation)
        {
            return await base.AddAsync(cultivation);
        }

        public async Task<List<Cultivation>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<Cultivation>> GetAsync(Expression<Func<Cultivation, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<Cultivation> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> Update(Cultivation cultivation)
        {
            return await base.Update(cultivation);
        }
    }
}
